checkLogin();

scorllInit();
var success = function (res) {
    var info = res.data.info;
    var html = template('bucket-top',info);
    $('#bucket-top-content').append(html);
}
getData(member_info,comParams(),success)

fenye_options.url = member_bucket_record;
fenye_options.dataName = 'record_list';

function scorllInit() {
    var info = getScreen();
    var slider_height = parseInt($(".mui-bar").height());
    var category_height = parseInt($(".bucket-top").height());
    var scroll_height = info[1] - slider_height - category_height- 23 + 'px';
    fenye_options.scrollHeight = scroll_height; //设置分页滚轴高度（自适应）
    mui('.mui-control-content').each(function() {
        this.style.height = scroll_height;
    });
    mui('.mui-scroll-wrapper').each(function(k, v) {
        mui(v).scroll({
            deceleration: (mui.os.ios ? 0.003 : 0.0006),
            indicators: false  //隐藏一条滚动条 增大减速系数。。。
        });
    });
}

$('.yiwen').on('tap',function () {
    var string = "总水桶：用户住所存放的所有水桶\n自备桶：总水桶中用户自备的水桶\n押金桶：总水桶中已付押金的水桶\n借用桶：总水桶中未付押金的水桶"
    malert(string);
})